package com.micronote.provider.entity;

import java.util.HashMap;

import com.micronote.provider.DatabaseHelper;

public class Attachment {
	static public String create()
	{
		HashMap<String, String> columns = new HashMap<String, String>();
		
		columns.put("guid", "VARCHAR(36) PRIMARY KEY");
		columns.put("note_guid", "VARCHAR(36)");
		columns.put("content_type", "VARCHAR(255)");
		columns.put("content_path", "VARCHAR(255)");
		columns.put("content_length", "INTEGER");
		columns.put("created_time", "INTEGER");
		columns.put("dirty", "INTEGER");
		columns.put("image_width", "INTEGER");
		columns.put("image_height", "INTEGER");
		columns.put("image_thumbnail", "BLOB");

		return DatabaseHelper.createTable("attachment", columns);
	}
}
